home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
662.swf
/
scripts
/
frame_19
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
2KB
|
49 lines
tellTarget("squeezer2")
{
gotoAndStop(eval("/:result")[2]);
}
if(player >= 20 && computer >= 20)
{
gotoAndPlay(1);
}
computer_grade = calc_grade(2,result,10);
setProperty("squeezer2", _X, getProperty("move_bg", _X));
setProperty("squeezer2", _Y, getProperty("move_bg", _Y));
if(player_grad[0] == computer_grade || player_grad[1] == computer_grade || 21 < player_grad[0] && 21 < computer_grade || 21 < player_grad[1] && 21 < computer_grade)
{
gotoAndPlay(66);
}
else if((21 >= player_grad[0] && computer_grade < player_grad[0] || 21 < computer_grade || player_card[0] == 5 && 21 >= player_grad[0]) && player_grad[0] != 0)
{
if(player_card[0] < computer_card && computer_card == 5 && 21 >= computer_card || computer_card == player_card[0] && player_grad[0] < computer_grade && 21 >= computer_grade)
{
gotoAndPlay(43);
}
else
{
gotoAndPlay(20);
}
}
else if(21 >= player_grad[1] && computer_grade < player_grad[1] || 21 < computer_grade || player_card[1] == 5 && 21 >= player_grad[1])
{
if(player_card[1] < computer_card && computer_card == 5 && 21 >= computer_card || computer_card == player_card[1] && player_grad[1] < computer_grade && 21 >= computer_grade)
{
player_grad[1] = 0;
gotoAndPlay(43);
}
else
{
player_grad[1] = 0;
gotoAndPlay(20);
}
}
else if((21 >= computer_grade && computer_grade >= player_grad[0] || 21 < player_grad[0] || computer_card == 5 && 21 >= computer_grade) && player_grad[0] != 0)
{
gotoAndPlay(43);
}
else if(21 >= computer_grade && computer_grade >= player_grad[1] || 21 < player_grad[1] || computer_card == 5 && 21 >= computer_grade)
{
player_grad[1] = 0;
gotoAndPlay(43);
}